import { loadLocalesMapFromDir } from '@oaexpert/locales'

const modules = import.meta.glob('./langs/**/*.json')
export const localesMap = loadLocalesMapFromDir(
  /\.\/langs\/([^/]+)\/(.*)\.json$/,
  modules,
)
